import { createApp } from 'vue'

//引入 路由
import { router } from './router/index.js'

//ElementPlus
import ElementPlus from 'element-plus'
// 样式
import 'element-plus/dist/index.css'

import App from './App.vue'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// createApp(App)
//     .use(router)
//     .mount('#app')

const app = createApp(App)
app.use(router)

//引用  ElementPlus
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')
